# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=rootbrute
pkgver=0.1
pkgrel=8
epoch=1
pkgdesc='Local root account bruteforcer.'
arch=('any')
url='http://www.packetstormsecurity.org/'
license=('custom:unknown')
depends=('python2' 'python2-pexpect')
groups=('blackarch' 'blackarch-cracker')
source=("$pkgname::https://dl.packetstormsecurity.net/Crackers/$pkgname.py.txt")
sha512sums=('1a682c1bcb19f4c6401cbf8a80447388ba2facd5344266824d5305c1ff66523ef3653f98bd87a8e7f6481b6395627a5fa04c8fe7ce89d843d1d20eaee401f3a1')

prepare() {
  sed -i 's|/usr/bin/python$|/usr/bin/env python2|' $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

